package logic.collegeQuery_logic;

import java.util.List;

import po.CollegeConsularPO;
import po.StudentPO;
import po.TeacherPO;
import resultmessage.CollegeQueryRM;
import resultmessage.CourseQueryRM;
import vo.CollegeListVO;
import vo.StudentVO;
import vo.TeacherVO;
import logicsv.collegeQuery_logicsv.CollegeQueryLogicsv;

public class CollegeQueryLogicsvController implements CollegeQueryLogicsv {
	private CollegeQuery collegeQuery;
	private CollegeConsularQuerysv collegeConsularQuery;
	private MemberQuerysv memberQuery;
	private CourseQuerysv courseQuery;
	
	public CollegeQueryLogicsvController(){
		// TODO Auto-generated method stub
		collegeQuery = new CollegeQuery();
		collegeConsularQuery = new CollegeConsularQuery();
		memberQuery = new MemberQuery();
		courseQuery = new CourseQuery();
	}
	
	@Override
	public CollegeListVO getCollegeList() {
		// TODO Auto-generated method stub
		CollegeListVO collegeListVO = collegeQuery.getCollegeList();
		return collegeListVO;
	}

	@Override
	public CourseQueryRM addCourse(String collegeID, String courseID,String name) {
		// TODO Auto-generated method stub
		CourseQueryRM resultMessage = courseQuery.addCourse(collegeID, courseID,courseID);
		return resultMessage;
	}

	@Override
	public CourseQueryRM deleteCourse(String collegeID, String courseID) {
		// TODO Auto-generated method stub
		CourseQueryRM resultMessage = courseQuery.deleteCourse(collegeID, courseID);
		return resultMessage;
	}


	@Override
	public CollegeQueryRM deleteCollegeConsular(String collegeID,String consularID) {
		// TODO Auto-generated method stub
		CollegeQueryRM resultMessage = collegeConsularQuery.deleteCollegeConsular(collegeID, consularID);
		return resultMessage;
	}

	@Override
	public List<StudentVO> getCollegeSudents(String collegeID) {
		// TODO Auto-generated method stub
		return memberQuery.getCollegeSudents(collegeID);
	}

	@Override
	public List<TeacherVO> getCollegeTeachers(String collegeID) {
		// TODO Auto-generated method stub
		return memberQuery.getCollegeTeachers(collegeID);
	}

	@Override
	public CollegeQueryRM addStudent(String collegeID, StudentPO student) {
		// TODO Auto-generated method stub
		return memberQuery.addStudent(collegeID, student);
	}

	@Override
	public CollegeQueryRM deleteStudent(String collegeID, String studentID) {
		// TODO Auto-generated method stub
		return memberQuery.deleteStudent(collegeID, studentID);
	}

	@Override
	public CollegeQueryRM addTeacher(String collegeID, TeacherPO teacher) {
		// TODO Auto-generated method stub
		return memberQuery.addTeacher(collegeID, teacher);
	}

	@Override
	public CollegeQueryRM deleteTeacher(String collegeID, String teacherID) {
		// TODO Auto-generated method stub
		return memberQuery.deleteTeacher(collegeID, teacherID);
	}

	@Override
	public CollegeQueryRM addCollegeConsular(String collegeID,
			CollegeConsularPO consular) {
		// TODO Auto-generated method stub
		return collegeConsularQuery.addCollegeConsular(collegeID, consular);
	}

}
